import Http from '../../http';

export const getList = function() {
    return Http.get('/UserDept/index') 
}

export const getEdit = function(id:number) {
    return Http.get('/UserDept/AddOrEdit',{id:id}) 
}
export const postAdd = function(from:any) {
    return Http.post('/UserDept/Create',from) 
}
export const putEdit = function(from:any) {
    return Http.put('/UserDept/Edit',from) 
}
export const delOne = function(id:number) {
    return Http.delete('/UserDept/Delete',{id:id}) 
}


export const getEditContentRes = function(id:number) {
    return Http.get('/UserDept/EditContentCate',{id:id}) 
}

export const putEditContentRes = function(from:any) {
    return Http.put('/UserDept/ContentCateEdit',from) 
}
